.class Les/ga;
.super Lcom/esfile/screen/recorder/media/glutils/d;
.source "EditSurface.java"


# instance fields
.field private A:Landroid/graphics/Rect;

.field private B:Landroid/graphics/Rect;

.field private C:Landroid/graphics/Rect;

.field private p:I

.field private q:I

.field private r:I

.field private s:I

.field private t:Les/j8;

.field private u:Les/u7;

.field private v:Les/c8;

.field private w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

.field private x:Z

.field private y:Landroid/graphics/RectF;

.field private z:Ljava/lang/Boolean;


# direct methods
.method constructor <init>(IIII)V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/media/glutils/d;-><init>()V

    .line 2
    sget-object v0, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->FIT_XY:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    iput-object v0, p0, Les/ga;->w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/ga;->y:Landroid/graphics/RectF;

    .line 4
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Les/ga;->B:Landroid/graphics/Rect;

    .line 5
    iput p1, p0, Les/ga;->p:I

    .line 6
    iput p2, p0, Les/ga;->q:I

    .line 7
    iput p3, p0, Les/ga;->r:I

    .line 8
    iput p4, p0, Les/ga;->s:I

    .line 9
    invoke-direct {p0}, Les/ga;->k()V

    .line 10
    invoke-virtual {p0, p1, p2}, Lcom/esfile/screen/recorder/media/glutils/d;->a(II)V

    .line 11
    invoke-virtual {p0, p3, p4}, Lcom/esfile/screen/recorder/media/glutils/d;->b(II)V

    return-void
.end method

.method private a(Landroid/graphics/Rect;)V
    .locals 3

    if-eqz p1, :cond_0

    .line 34
    iget v0, p1, Landroid/graphics/Rect;->left:I

    iget v1, p0, Les/ga;->q:I

    iget v2, p1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v1, v2

    .line 35
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v2

    sub-int/2addr v1, v2

    .line 36
    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v2

    .line 37
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result p1

    .line 38
    invoke-static {v0, v1, v2, p1}, Landroid/opengl/GLES20;->glViewport(IIII)V

    :cond_0
    return-void
.end method

.method private k()V
    .locals 13

    .line 1
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/media/glutils/d;->b()I

    move-result v0

    div-int/lit8 v0, v0, 0x5a

    rem-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_1

    .line 2
    iget v1, p0, Les/ga;->s:I

    goto :goto_1

    :cond_1
    iget v1, p0, Les/ga;->r:I

    :goto_1
    if-eqz v0, :cond_2

    .line 3
    iget v0, p0, Les/ga;->r:I

    goto :goto_2

    :cond_2
    iget v0, p0, Les/ga;->s:I

    .line 4
    :goto_2
    iget v2, p0, Les/ga;->p:I

    .line 5
    iget v3, p0, Les/ga;->q:I

    .line 6
    iget-object v4, p0, Les/ga;->y:Landroid/graphics/RectF;

    const/4 v5, 0x0

    const/4 v6, 0x0

    if-eqz v4, :cond_3

    invoke-virtual {v4}, Landroid/graphics/RectF;->width()F

    move-result v4

    cmpl-float v4, v4, v5

    if-lez v4, :cond_3

    iget-object v4, p0, Les/ga;->y:Landroid/graphics/RectF;

    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v4

    cmpl-float v4, v4, v5

    if-lez v4, :cond_3

    .line 7
    iget-object v4, p0, Les/ga;->y:Landroid/graphics/RectF;

    .line 8
    iget-boolean v7, p0, Les/ga;->x:Z

    if-eqz v7, :cond_4

    .line 9
    new-instance v7, Landroid/graphics/RectF;

    iget v8, v4, Landroid/graphics/RectF;->left:F

    int-to-float v9, v1

    mul-float v8, v8, v9

    iget v10, v4, Landroid/graphics/RectF;->top:F

    int-to-float v11, v0

    mul-float v10, v10, v11

    iget v12, v4, Landroid/graphics/RectF;->right:F

    mul-float v12, v12, v9

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    mul-float v4, v4, v11

    invoke-direct {v7, v8, v10, v12, v4}, Landroid/graphics/RectF;-><init>(FFFF)V

    move-object v4, v7

    goto :goto_3

    :cond_3
    move-object v4, v6

    .line 10
    :cond_4
    :goto_3
    iget-object v7, p0, Les/ga;->u:Les/u7;

    if-eqz v7, :cond_6

    if-eqz v4, :cond_5

    .line 11
    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v2

    float-to-int v2, v2

    goto :goto_4

    :cond_5
    iget v2, p0, Les/ga;->s:I

    .line 12
    :goto_4
    iget v3, p0, Les/ga;->p:I

    iget v7, p0, Les/ga;->q:I

    mul-int/lit8 v8, v2, 0x10

    div-int/lit8 v8, v8, 0x9

    iget-object v9, p0, Les/ga;->w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    invoke-static {v3, v7, v8, v2, v9}, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil;->a(IIIILcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)Landroid/graphics/Rect;

    move-result-object v2

    iput-object v2, p0, Les/ga;->C:Landroid/graphics/Rect;

    .line 13
    invoke-virtual {v2}, Landroid/graphics/Rect;->width()I

    move-result v2

    .line 14
    iget-object v3, p0, Les/ga;->C:Landroid/graphics/Rect;

    invoke-virtual {v3}, Landroid/graphics/Rect;->height()I

    move-result v3

    goto :goto_5

    .line 15
    :cond_6
    iput-object v6, p0, Les/ga;->C:Landroid/graphics/Rect;

    .line 16
    :goto_5
    iget-object v7, p0, Les/ga;->y:Landroid/graphics/RectF;

    const-string v8, "EditSurface"

    if-eqz v7, :cond_8

    invoke-virtual {v7}, Landroid/graphics/RectF;->width()F

    move-result v7

    cmpl-float v7, v7, v5

    if-lez v7, :cond_8

    iget-object v7, p0, Les/ga;->y:Landroid/graphics/RectF;

    invoke-virtual {v7}, Landroid/graphics/RectF;->height()F

    move-result v7

    cmpl-float v5, v7, v5

    if-lez v5, :cond_8

    .line 17
    invoke-virtual {v4}, Landroid/graphics/RectF;->width()F

    move-result v5

    float-to-int v5, v5

    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v7

    float-to-int v7, v7

    iget-object v9, p0, Les/ga;->w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    .line 18
    invoke-static {v2, v3, v5, v7, v9}, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil;->a(IIIILcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)Landroid/graphics/Rect;

    move-result-object v5

    .line 19
    iget-object v7, p0, Les/ga;->C:Landroid/graphics/Rect;

    if-eqz v7, :cond_7

    .line 20
    iget v9, v5, Landroid/graphics/Rect;->top:I

    iget v10, v7, Landroid/graphics/Rect;->top:I

    add-int/2addr v9, v10

    iput v9, v5, Landroid/graphics/Rect;->top:I

    .line 21
    iget v9, v5, Landroid/graphics/Rect;->bottom:I

    iget v7, v7, Landroid/graphics/Rect;->top:I

    add-int/2addr v9, v7

    iput v9, v5, Landroid/graphics/Rect;->bottom:I

    .line 22
    :cond_7
    iput-object v5, p0, Les/ga;->A:Landroid/graphics/Rect;

    .line 23
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "video crop rect:"

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v9, p0, Les/ga;->A:Landroid/graphics/Rect;

    invoke-virtual {v9}, Landroid/graphics/Rect;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v7, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v8, v7}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    invoke-virtual {v5}, Landroid/graphics/Rect;->width()I

    move-result v7

    int-to-float v7, v7

    const/high16 v9, 0x3f800000    # 1.0f

    mul-float v7, v7, v9

    invoke-virtual {v4}, Landroid/graphics/RectF;->width()F

    move-result v10

    div-float/2addr v7, v10

    .line 25
    invoke-virtual {v5}, Landroid/graphics/Rect;->height()I

    move-result v10

    int-to-float v10, v10

    mul-float v10, v10, v9

    invoke-virtual {v4}, Landroid/graphics/RectF;->height()F

    move-result v9

    div-float/2addr v10, v9

    .line 26
    iget-object v9, p0, Les/ga;->B:Landroid/graphics/Rect;

    iget v11, v5, Landroid/graphics/Rect;->left:I

    int-to-float v11, v11

    iget v12, v4, Landroid/graphics/RectF;->left:F

    mul-float v12, v12, v7

    sub-float/2addr v11, v12

    float-to-int v11, v11

    iput v11, v9, Landroid/graphics/Rect;->left:I

    int-to-float v11, v11

    int-to-float v1, v1

    mul-float v1, v1, v7

    add-float/2addr v11, v1

    float-to-int v1, v11

    .line 27
    iput v1, v9, Landroid/graphics/Rect;->right:I

    .line 28
    iget v1, v5, Landroid/graphics/Rect;->top:I

    int-to-float v1, v1

    iget v4, v4, Landroid/graphics/RectF;->top:F

    mul-float v4, v4, v10

    sub-float/2addr v1, v4

    float-to-int v1, v1

    iput v1, v9, Landroid/graphics/Rect;->top:I

    int-to-float v1, v1

    int-to-float v0, v0

    mul-float v0, v0, v10

    add-float/2addr v1, v0

    float-to-int v0, v1

    .line 29
    iput v0, v9, Landroid/graphics/Rect;->bottom:I

    goto :goto_6

    .line 30
    :cond_8
    iput-object v6, p0, Les/ga;->A:Landroid/graphics/Rect;

    .line 31
    iget-object v4, p0, Les/ga;->w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    invoke-static {v2, v3, v1, v0, v4}, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil;->a(IIIILcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)Landroid/graphics/Rect;

    move-result-object v0

    iput-object v0, p0, Les/ga;->B:Landroid/graphics/Rect;

    .line 32
    iget-object v1, p0, Les/ga;->C:Landroid/graphics/Rect;

    if-eqz v1, :cond_9

    .line 33
    iget v4, v0, Landroid/graphics/Rect;->top:I

    iget v5, v1, Landroid/graphics/Rect;->top:I

    add-int/2addr v4, v5

    iput v4, v0, Landroid/graphics/Rect;->top:I

    .line 34
    iget v4, v0, Landroid/graphics/Rect;->bottom:I

    iget v1, v1, Landroid/graphics/Rect;->top:I

    add-int/2addr v4, v1

    iput v4, v0, Landroid/graphics/Rect;->bottom:I

    .line 35
    :cond_9
    :goto_6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "video draw rect:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/ga;->B:Landroid/graphics/Rect;

    invoke-virtual {v1}, Landroid/graphics/Rect;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v8, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 36
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "video background rect:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/ga;->C:Landroid/graphics/Rect;

    if-eqz v1, :cond_a

    invoke-virtual {v1}, Landroid/graphics/Rect;->toString()Ljava/lang/String;

    move-result-object v6

    :cond_a
    invoke-virtual {v0, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v8, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 37
    iget-object v0, p0, Les/ga;->C:Landroid/graphics/Rect;

    if-eqz v0, :cond_b

    .line 38
    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v2

    .line 39
    iget-object v0, p0, Les/ga;->C:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v3

    goto :goto_7

    .line 40
    :cond_b
    iget-object v0, p0, Les/ga;->A:Landroid/graphics/Rect;

    if-eqz v0, :cond_c

    .line 41
    invoke-virtual {v0}, Landroid/graphics/Rect;->width()I

    move-result v2

    .line 42
    iget-object v0, p0, Les/ga;->A:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->height()I

    move-result v3

    .line 43
    :cond_c
    :goto_7
    iget-object v0, p0, Les/ga;->u:Les/u7;

    if-eqz v0, :cond_d

    .line 44
    invoke-virtual {v0, v2, v3}, Les/u7;->a(II)V

    .line 45
    :cond_d
    iget-object v0, p0, Les/ga;->t:Les/j8;

    if-eqz v0, :cond_e

    .line 46
    invoke-virtual {v0, v2, v3}, Les/j8;->a(II)V

    :cond_e
    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 0

    .line 26
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/media/glutils/d;->a(I)V

    .line 27
    invoke-direct {p0}, Les/ga;->k()V

    return-void
.end method

.method public a(Landroid/graphics/RectF;Z)V
    .locals 2

    if-eqz p1, :cond_0

    .line 21
    invoke-virtual {p1}, Landroid/graphics/RectF;->width()F

    move-result v0

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    invoke-virtual {p1}, Landroid/graphics/RectF;->height()F

    move-result v0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    .line 22
    iput-boolean p2, p0, Les/ga;->x:Z

    .line 23
    iput-object p1, p0, Les/ga;->y:Landroid/graphics/RectF;

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 24
    iput-object p1, p0, Les/ga;->y:Landroid/graphics/RectF;

    .line 25
    :goto_0
    invoke-direct {p0}, Les/ga;->k()V

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)V
    .locals 0
    .param p1    # Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 20
    iput-object p1, p0, Les/ga;->w:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    return-void
.end method

.method public a(Les/a8;)V
    .locals 2

    .line 15
    iget-object v0, p0, Les/ga;->v:Les/c8;

    if-eqz v0, :cond_0

    .line 16
    invoke-virtual {v0}, Les/c8;->a()V

    const/4 v0, 0x0

    .line 17
    iput-object v0, p0, Les/ga;->v:Les/c8;

    :cond_0
    if-eqz p1, :cond_1

    .line 18
    new-instance v0, Les/c8;

    invoke-direct {v0, p1}, Les/c8;-><init>(Les/a8;)V

    iput-object v0, p0, Les/ga;->v:Les/c8;

    .line 19
    iget p1, p0, Les/ga;->p:I

    iget v1, p0, Les/ga;->q:I

    invoke-virtual {v0, p1, v1}, Les/c8;->a(II)V

    :cond_1
    return-void
.end method

.method public a(Les/f8;)V
    .locals 1

    .line 1
    iget-object v0, p0, Les/ga;->t:Les/j8;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/j8;->a()V

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/ga;->t:Les/j8;

    :cond_0
    if-eqz p1, :cond_1

    .line 4
    new-instance v0, Les/j8;

    invoke-direct {v0, p1}, Les/j8;-><init>(Les/f8;)V

    iput-object v0, p0, Les/ga;->t:Les/j8;

    .line 5
    iget-object p1, p0, Les/ga;->z:Ljava/lang/Boolean;

    if-eqz p1, :cond_1

    .line 6
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/j8;->a(Z)V

    .line 7
    :cond_1
    invoke-direct {p0}, Les/ga;->k()V

    return-void
.end method

.method public a(Les/t7;)V
    .locals 1

    .line 8
    iget-object v0, p0, Les/ga;->u:Les/u7;

    if-eqz v0, :cond_0

    .line 9
    invoke-virtual {v0}, Les/u7;->a()V

    const/4 v0, 0x0

    .line 10
    iput-object v0, p0, Les/ga;->u:Les/u7;

    :cond_0
    if-eqz p1, :cond_1

    .line 11
    new-instance v0, Les/u7;

    invoke-direct {v0, p1}, Les/u7;-><init>(Les/t7;)V

    iput-object v0, p0, Les/ga;->u:Les/u7;

    .line 12
    iget-object p1, p0, Les/ga;->z:Ljava/lang/Boolean;

    if-eqz p1, :cond_1

    .line 13
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-virtual {v0, p1}, Les/u7;->a(Z)V

    .line 14
    :cond_1
    invoke-direct {p0}, Les/ga;->k()V

    return-void
.end method

.method public a(Z)V
    .locals 1

    .line 28
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/media/glutils/d;->a(Z)V

    .line 29
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Les/ga;->z:Ljava/lang/Boolean;

    .line 30
    iget-object v0, p0, Les/ga;->u:Les/u7;

    if-eqz v0, :cond_0

    .line 31
    invoke-virtual {v0, p1}, Les/u7;->a(Z)V

    .line 32
    :cond_0
    iget-object p1, p0, Les/ga;->t:Les/j8;

    if-eqz p1, :cond_1

    .line 33
    iget-object v0, p0, Les/ga;->z:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    invoke-virtual {p1, v0}, Les/j8;->a(Z)V

    :cond_1
    return-void
.end method

.method public c(J)V
    .locals 3

    const/16 v0, 0xc11

    .line 1
    invoke-static {v0}, Landroid/opengl/GLES20;->glDisable(I)V

    .line 2
    iget v0, p0, Les/ga;->p:I

    iget v1, p0, Les/ga;->q:I

    const/4 v2, 0x0

    invoke-static {v2, v2, v0, v1}, Landroid/opengl/GLES20;->glViewport(IIII)V

    .line 3
    iget-object v0, p0, Les/ga;->C:Landroid/graphics/Rect;

    if-eqz v0, :cond_0

    .line 4
    invoke-direct {p0, v0}, Les/ga;->a(Landroid/graphics/Rect;)V

    goto :goto_0

    .line 5
    :cond_0
    iget-object v0, p0, Les/ga;->A:Landroid/graphics/Rect;

    if-eqz v0, :cond_1

    .line 6
    invoke-direct {p0, v0}, Les/ga;->a(Landroid/graphics/Rect;)V

    .line 7
    :cond_1
    :goto_0
    iget-object v0, p0, Les/ga;->t:Les/j8;

    if-eqz v0, :cond_2

    .line 8
    invoke-virtual {v0, p1, p2}, Les/j8;->a(J)V

    .line 9
    :cond_2
    iget v0, p0, Les/ga;->p:I

    iget v1, p0, Les/ga;->q:I

    invoke-static {v2, v2, v0, v1}, Landroid/opengl/GLES20;->glViewport(IIII)V

    .line 10
    iget-object v0, p0, Les/ga;->v:Les/c8;

    if-eqz v0, :cond_3

    .line 11
    invoke-virtual {v0, p1, p2}, Les/c8;->a(J)I

    :cond_3
    return-void
.end method

.method public d(J)V
    .locals 2

    .line 1
    iget-object v0, p0, Les/ga;->u:Les/u7;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/ga;->C:Landroid/graphics/Rect;

    invoke-direct {p0, v0}, Les/ga;->a(Landroid/graphics/Rect;)V

    .line 3
    iget-object v0, p0, Les/ga;->u:Les/u7;

    invoke-virtual {v0, p1, p2}, Les/u7;->a(J)I

    .line 4
    :cond_0
    iget-object p1, p0, Les/ga;->B:Landroid/graphics/Rect;

    invoke-direct {p0, p1}, Les/ga;->a(Landroid/graphics/Rect;)V

    .line 5
    iget-object p1, p0, Les/ga;->A:Landroid/graphics/Rect;

    if-eqz p1, :cond_1

    const/16 p1, 0xc11

    .line 6
    invoke-static {p1}, Landroid/opengl/GLES20;->glEnable(I)V

    .line 7
    iget-object p1, p0, Les/ga;->A:Landroid/graphics/Rect;

    iget p2, p1, Landroid/graphics/Rect;->left:I

    iget v0, p0, Les/ga;->q:I

    iget v1, p1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, v1

    .line 8
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result p1

    sub-int/2addr v0, p1

    iget-object p1, p0, Les/ga;->A:Landroid/graphics/Rect;

    .line 9
    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result p1

    iget-object v1, p0, Les/ga;->A:Landroid/graphics/Rect;

    .line 10
    invoke-virtual {v1}, Landroid/graphics/Rect;->height()I

    move-result v1

    .line 11
    invoke-static {p2, v0, p1, v1}, Landroid/opengl/GLES20;->glScissor(IIII)V

    :cond_1
    return-void
.end method

.method public f()V
    .locals 0

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/media/glutils/d;->f()V

    return-void
.end method

.method public g()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/ga;->t:Les/j8;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/j8;->a()V

    .line 3
    iput-object v1, p0, Les/ga;->t:Les/j8;

    .line 4
    :cond_0
    iget-object v0, p0, Les/ga;->u:Les/u7;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Les/u7;->a()V

    .line 6
    iput-object v1, p0, Les/ga;->u:Les/u7;

    .line 7
    :cond_1
    iget-object v0, p0, Les/ga;->v:Les/c8;

    if-eqz v0, :cond_2

    .line 8
    invoke-virtual {v0}, Les/c8;->a()V

    .line 9
    iput-object v1, p0, Les/ga;->v:Les/c8;

    :cond_2
    return-void
.end method

.method public j()Ljava/nio/ByteBuffer;
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/media/glutils/d;->b(Z)Ljava/nio/ByteBuffer;

    move-result-object v0

    return-object v0
.end method
